package net.mgsx.product.t2m.modisco.tools;

import net.mgsx.product.t2m.modisco.Activator;

import org.eclipse.gmt.modisco.infra.common.core.logging.MoDiscoLogger;

/**
 * Default logger implementation for the application  
 * 
 * @author mgsx
 *
 */
public class LoggerModiscoLoggerBridge implements Logger {

	@Override
	public void logError(String message) {
		MoDiscoLogger.logError(message, Activator.getDefault());
	}

	@Override
	public void logWarning(String message) {
		MoDiscoLogger.logWarning(message, Activator.getDefault());
		
	}

	@Override
	public void logInfo(String message) {
		MoDiscoLogger.logInfo(message, Activator.getDefault());
	}

	@Override
	public void logDebug(String message) {
		if(Activator.getDefault().isDebugging()){
			MoDiscoLogger.logInfo(message, Activator.getDefault());
		}
	}


}
